package test.test1201;

import java.util.Scanner;
public class test006 {
    public static void main(String[] args) {
        Scanner sc=new Scanner(System.in);
        int arr[]=new int[]{12,14,23,45,66,68,70,77,90,91};
        int num=sc.nextInt();
        int arr2[]=new int[11];
        int suo=0;
        for (int i =0;i<10;i++){
            if (num>=arr[i]){
                arr2[i]=arr[i];
                suo=i+1;
            }else if(num<arr[i]){
                arr2[i+1]=arr[i];
            }
        }
        arr2[suo]=num;
        for (int a=0;a<11;a++){
            System.out.println(arr2[a]);
        }
    }
}
